<script>
	export default {
		onLaunch() {
			console.log('App onLaunch')
		},
		onShow() {
			if (uni.getStorageSync('userInfo')) {
				//有用户信息，修改vuex登录转态
				this.$store.commit('isLogin')
			}
		},
		onHide() {
			console.log('App onHide')
		},
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import url("/common/free.css");
	@import url("/common/common.css");

	//单行省略
	.text-one {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	//多行省略
	.text-two {
		word-break: break-all;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}
</style>
